package com.xplay.xpocker.core.lock;

import java.util.concurrent.TimeUnit;
import java.util.function.Supplier;

public interface LockServer {
    public <T> T lock(String key, Supplier<T> supplier);

    public <T> T lock(String key, long time, TimeUnit timeUnit, Supplier<T> supplier);
}
